import request from "@/utils/request";

export const loginApi = (param) => {
  return request.post("/app/user/login/mini", param);
};

// 查询我的余额
export const queryBalance = () => {
  return request.get("/app/pay/balance/info");
};

// 充值余额
export const rechargeBalance = (param) => {
  return request.post("/app/pay/order/recharge", param);
};

// 充值记录
export const queryRechargeRecord = (param) => {
  return request.get("/app/pay/order/list", param);
};

// 获取余额变动
export const queryBalanceChange = (param) => {
  return request.get("/app/pay/balance/logs", param);
};

// 获取帮助中心
export const queryHelp = (param) => {
  return request.get("/app/help/info/helpCenter", param);
};

// 获取隐私条款
export const queryPrivacy = (param) => {
  return request.get("/app/help/info/privacyPolicy", param);
};

// 关于我们
export const queryAbout = (param) => {
  return request.get("/app/help/info/aboutUs", param);
};
